package com.bbcare.followup.plat.task.reserve;

import org.apache.log4j.Logger;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import org.springframework.beans.factory.annotation.Autowired;

import com.bbcare.followup.plat.service.IReserveService;


/**
 * 预约模块：每周一早上自动生成连续2周的治疗仪空预约。
 */
public class MachineJob implements Job {
    private final static Logger logger = Logger.getLogger(MachineJob.class);

    @Autowired
    private IReserveService reserveService;


    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        logger.info("++++开始执行生成治疗仪的2周空预约。");

        reserveService.generate2WeekMachineReservation();

        logger.info("++++已完成。");
    }
}
